/**
 * render td
 * 
 * @param {}
 *            value
 * @param {}
 *            cellmeta
 * @param {}
 *            record
 * @param {}
 *            rowIndex
 * @param {}
 *            columnIndex
 * @param {}
 *            store
 * @return {}
 */
function renderTQJspListHeader(value, cellmeta, record, rowIndex, columnIndex, store) {
	var cm = getGridCm('gdzctempeditlist');
	var fieldName = cm.getDataIndex(columnIndex);
	if (fieldName == 'TNAME') {
		var resultString = String.format('<a title="模板内容查阅" href="' + context
						+ '/app/gdzctemplate.do?method=edit&id={0}">{1}</a>',
				record.data['ID'], value);

		return resultString;
	} else if (fieldName == 'TDATE') {
		return formatDate(value);
	} else if (fieldName == 'TSTATUS') {
		return (value == -1 ? '<font color="red">已停用</font>' : '已启用');
	} else if (fieldName == 'SP') {
		var resultString = String.format('<a href="' + context
						+ '/app/gdzctemplate.do?method=edit&id={0}">内容维护</a>',
				record.data['ID'], record.data['TNAME']);

		return resultString;
	}
	return value;
}